package cn.gson.springboot.model.mapper;

import cn.gson.springboot.model.pojos.Function;
import cn.gson.springboot.model.pojos.FunctionType;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;
@Mapper
@Component
public interface FunctionTypeMapper {
    //查找所有权限组
    public List<FunctionType> allFunTypes();
    //查找部门的权限组
    public List<Integer> deptFunType(Integer deptId);

    public List<FunctionType> funMenu(Integer empId);

    public List<FunctionType> jobFunType(Integer jobId);

    public List<Integer> jobFuns(Integer jobId);
}
